package com.mywork.dao;

import java.util.List;

import com.mywork.po.Drug;

public interface DrugMapper {
    int deleteByPrimaryKey(Long drugid);

    int insert(Drug record);

    int insertSelective(Drug record);

    Drug selectByPrimaryKey(Long drugid);

    int updateByPrimaryKeySelective(Drug record);

    int updateByPrimaryKey(Drug record);

	List<Drug> selectForLimit(int i, int pageSize);

	Long selectMaxId();

	List<Drug> selectAll();

	List<Drug> getAllFirstLevlDrug();

	List<Drug> getNextLevelDrugList(String drugId);

	int getCountOfDrugList();

	List<Drug> selectByDrugNameOrMnemonicCode(String drugNameOrMnemonicCode);

	List<Drug> getDrugWhichNotice(int i, int j);

	int getCountOfNoticeDrugList();
	/**
	 * 查询全部过去列表信息
	 * @param i
	 * @param pageSize
	 * @return
	 */
	List<Drug> getExpiredDrugList(int i, int pageSize);

	int getCountOfExpiredDrugList();

	void updateForConsumptionCount(String string, String string2);

	void updateForAddSave(Long drugid, String addCount);
}